Cisco SD-WAN Policies | NetworkAcademy.IO

Skip to main content

Search

Main navigation

Learning Paths

Courses

User Anonymous

Sign up

Log in

Learning Path: CCIE Enterprise Infrastructure

Cisco Catalyst SD-WAN Deep-Dive

Cisco SD-WAN Policies

Cisco SD-WAN Policies

Wider Page

Bigger text

In traditional networking, configurations are typically applied on a device-per-device basis using CLI. This leads to a lot of boilerplate code and management inefficiencies. Cisco SD-WAN has been designed to overcome this by implementing a centralized management-plane that administers all devices. The solution uses policies to manipulate the overlay fabric in a centralized fashion and templates to eliminate the boilerplate configurations and reuse code.

What are Cisco SD-WAN Policies?

Policies are an essential part of the Cisco SD-WAN solution and are used to influence the packet flow across the overlay fabric. They are created on vManage through the Policy Wizard GUI and when applied, are pushed via NETCONF transactions either to vSmart controllers (centralized policies) or directly to vEdges (localized policies).

A Cisco SD-WAN policy is the sum of at least one list, that identifies interesting values, one policy definition, that defines actions, and at least one application, that defines where this policy will be applied. This concept is visualized in figure 1.

Figure 1. Cisco SD-WAN Policy Construction

It is important to understand that policies are configured on vSmart or vEdge. vManage is only a graphical user interface used to create and store policies, but once a policy is activated through the vManage GUI, it is configured with a NETCONF transaction either on vSmart or vEdge. Therefore, activating a policy via vManage is equal to manipulating the configuration of vSmart. If we define the policy shown in figure 1 using vManage and apply it, we are going to see that it will appear in the running-configuration of vSmart as shown in the cli output below.

We can clearly see the lists marked in green, the policy definition highlighted in yellow, and the policy application colored with orange. Another important nuance is that vSmart does not store policies, it only loads the currently active policy in its running-configuration. All policy versions and revisions are stored on vManage. Therefore vManage is responsible for roll-backs, version control, and making sure that policy changes are persistent across multiple vSmart controllers.

While all policies are defined using the vManage Policy Wizard, different types are enforced on different devices at different locations in the network. This is visualized in figure 2 below. Localized Control and Data policies such as Access-lists, Classification, Marking, Policing, or local-site routing are enforced directly on the WAN edge routers with NETCONF transactions. On the other hand, centralized policies, that affect the whole overlay fabric, are applied to vSmart and only the result of the policy is advertised to the WAN edge routers using the Overlay Management Protocol (OMP).

Figure 2. Policy Application Location

At this point, you may be wondering what is NETCONF. It is a popular network management protocol designed to manage remote configurations. Its operations on top of a Remote Procedure Call (RPC) layer and uses XML or JSON for data encoding. Typically the protocol messages are exchanged over Transport Layer Security (TLS) with mutual X.509 Authentication. You do not need to know more about it in order to work with the Cisco SD-WAN Viptela solution.

Cisco SD-WAN Policy Types

As you are already well aware, the Cisco SD-WAN solution follows the SDN principles and separates the control plane from the data plane. It is also designed to be centrally managed but at the same time allows you to make changes on a single device. To encompass these principles, the solution allows us to configure a few different types of policies. Centralized policies allow us to manipulate the whole overlay fabric in a centralized fashion and localized ones give us the ability to manipulate only a particular device or location. Because the control and data plane are separated, centralized policies are also separated into centralized-control-policies that affect the control-plane operations and centralized-data-policies that directly affect the forwarding of packets. The following figure visualizes the Cisco SD-WAN policy's structure.

Figure 3. Cisco SD-WAN Policy Structure

Policy Key Points

Cisco SD-WAN policies are not easy to work with at first and the best way to get comfortable with them is to practice. However, before we begin playing around, I would like to highlight some key points that are good to be known beforehand.

A policy is processed in the following order of steps:

All match–action clauses are processed in sequential order, starting from the lowest sequence number upwards.

When a match occurs, the configured action is performed and the sequential processing does NOT continue further (all other match-action pairings are skipped).

If a match does not occur, the configured entity is subject to the default action configured (by default it is reject).

Centralized policies (the ones configured on vSmart) are always applied to a site-list.

Only one of each type of policies can be applied to a site-list. For example, you can configure one control-policy in and one control-policy out but not two control policies in the outbound direction.

Cisco does not recommend including a site in more than one site-list. Doing this may result in unpredictable behavior of the policies applied to these site-lists.

Centralized-Control-policy is unidirectional applied either inbound or outbound. For example, If we need to manipulate omp routes that the controller sends and receives, we must configure two control policies.

Centralized-Data-policy is directional and can be applied either to the traffic received from the service side of the vEdge router, traffic received from the tunnel side, or both.

VPN membership policy is always applied to traffic outbound from the vSmart controller.

vEdge Order of Operations

As you have seen by now, there are several different types of policies in the Cisco SD-WAN solution. That basically means that multiple different types can be applied to a given WAN Edge device. To design and implement policies in large-scale deployments, you must have a good understanding of the order of operations of the WAN edge nodes.

Figure 3. vEdge Order of Operations

Figure 3 visualizes the steps that a WAN edge router takes when forwarding a packet through:

IP Destination Lookup: WAN edge devices are in essence just routers, so the forwarding decision always starts with IP address lookup.

Ingress Interface ACL: Localized policies are typically used to create ACLs and tie them to vEdge interfaces. As in traditional networking, these ACLs can be used for filtering, marking, and traffic policing.

Application-Aware Routing: If there is an Application-Aware Routing policy applied, it makes a routing decision based on the defined SLA characteristics such as packet loss, latency, jitter, load, cost, and bandwidth of a link.

Centralized Data Policy: The centralized data policy is evaluated after the Application-Aware Routing policy and is able to override the Application-Aware Routing forwarding decision.

Forwarding: At this point, the destination IP address is compared against the routing table, and the output interface is determined.

Security Policy: If there are security services attached to the WAN edge node, they are processed in the following sequence - Firewall, IPS (Intrusion Prevention), URL-Filtering, and lastly AMP (Advanced Malware Protection). The necessary tunnel encapsulations are performed and VPN labels are inserted.

Egress Interface ACL: As with ingress ACLs, local policy is able to create ACLs that are applied on egress as well. If traffic is denied or manipulated by the egress ACL, those changes will take effect before the packet is forwarded.

Queueing and Scheduling: Egress traffic queueing services such as Low-Latency (LLQ) and Weighted Round Robin (WRR) queueing are performed before the packet leaves.

Book traversal links for 121

Previous Lesson Cisco SD-WAN Management Plane

Next Lesson Cisco SD-WAN Templates

Introduction to SD-WAN
Why do we need SD-WAN?
What is SD-WAN?
How Cisco SD-WAN works?
Cisco SD-WAN Main Principles

Why do we need SD-WAN?

What is SD-WAN?

How Cisco SD-WAN works?

Cisco SD-WAN Main Principles

Key features of Cisco SD-WAN
Application Quality of Experience (AppQoE)
Interconnecting Multiple Clouds
Direct Internet Access (DIA)
RESTful APIs

Application Quality of Experience (AppQoE)

Interconnecting Multiple Clouds

Direct Internet Access (DIA)

RESTful APIs

Cisco SD-WAN Control Plane
Underlay vs Overlay Routing
Control Connections
OMP Overview
OMP Best-Path Selection
OMP Send Path Limit
OMP Send Backup Paths
OMP Source Preference
Understanding OMP Routing
OMP TLOC-Action
Chapter Key Takeaways
QUIZ - Control Plane Fundamentals

Underlay vs Overlay Routing

Control Connections

OMP Overview

OMP Best-Path Selection

OMP Send Path Limit

OMP Send Backup Paths

OMP Source Preference

Understanding OMP Routing

OMP TLOC-Action

Chapter Key Takeaways

QUIZ - Control Plane Fundamentals

Cisco SD-WAN Data Plane
What is a TLOC?
The Overlay Fabric
TLOC Color and Carrier
Tunnel Groups
TLOCs and NAT
Data Plane Encryption
VPN Segmentation
Understanding VPNs and LABELs
LAB 1 - Connecting to the WAN using TLOC Extension
LAB 2 - Controlling the topology with restricted TLOC Colors
LAB 3 - Controlling the topology with Tunnel Groups
LAB 4 - Connecting to the WAN using a Loopback TLOC
QUIZ - Data Plane Fundamentals

What is a TLOC?

The Overlay Fabric

TLOC Color and Carrier

Tunnel Groups

TLOCs and NAT

Data Plane Encryption

VPN Segmentation

Understanding VPNs and LABELs

LAB 1 - Connecting to the WAN using TLOC Extension

LAB 2 - Controlling the topology with restricted TLOC Colors

LAB 3 - Controlling the topology with Tunnel Groups

LAB 4 - Connecting to the WAN using a Loopback TLOC

QUIZ - Data Plane Fundamentals

Cisco SD-WAN Deployment
Cisco SD-WAN Certificates Explained
Controllers Identity and Whitelisting
WAN Edge Deployment
Last Resort Circuit
Connection with legacy (non-sdwan) branches
TLOC Extension

Cisco SD-WAN Certificates Explained

Controllers Identity and Whitelisting

WAN Edge Deployment

Last Resort Circuit

Connection with legacy (non-sdwan) branches

TLOC Extension

Cisco SD-WAN Management Plane
Cisco SD-WAN Policies
Cisco SD-WAN Templates
vManage Mode

Cisco SD-WAN Policies

Cisco SD-WAN Templates

vManage Mode

Cisco SD-WAN Home Lab
Cisco SD-WAN on EVE-NG
Cisco SD-WAN version 20.x on PNETlab
Onboarding cEdge Catalyst 8000V
Onboarding cEdge CSR1K
Packet loss, Latency and Jitter on EVE-NG

Cisco SD-WAN on EVE-NG

Cisco SD-WAN version 20.x on PNETlab

Onboarding cEdge Catalyst 8000V

Onboarding cEdge CSR1K

Packet loss, Latency and Jitter on EVE-NG

Centralized Control Policies
What is a Centralized Control Policy?
Inbound vs Outbound Control Policy
LAB 1 - Hub-and-Spoke - Restricting spoke-to-spoke tunnels
LAB 2 - Hub-and-Spoke - Allowing hub-to-spoke routing
LAB 3 - Hub-and-Spoke - Enabling spoke-to-spoke communication
LAB 4 - Traffic Engineering - TLOC Preference
LAB 5 - Traffic Engineering - End-to-End Path Tracking
LAB 6 - VPN Membership Policy - Isolating guest users
LAB 7 - Service Chaining
LAB 8 - Route Leaking
LAB 9 - Per VPN topologies
LAB 10 - Dynamic On-demand Tunnels
QUIZ - Centralized Control Policies

What is a Centralized Control Policy?

Inbound vs Outbound Control Policy

LAB 1 - Hub-and-Spoke - Restricting spoke-to-spoke tunnels

LAB 2 - Hub-and-Spoke - Allowing hub-to-spoke routing

LAB 3 - Hub-and-Spoke - Enabling spoke-to-spoke communication

LAB 4 - Traffic Engineering - TLOC Preference

LAB 5 - Traffic Engineering - End-to-End Path Tracking

LAB 6 - VPN Membership Policy - Isolating guest users

LAB 7 - Service Chaining

LAB 8 - Route Leaking

LAB 9 - Per VPN topologies

LAB 10 - Dynamic On-demand Tunnels

QUIZ - Centralized Control Policies

Centralized Data Policies
What is a Centralized Data Policy?
LAB 1 - Direct Internet Access (DIA) - Internet access to guest users
LAB 2 - VPN-wide Access Control Lists
LAB 3 - NAT DIA Tracker
LAB 4 - Allowing DIA to trusted application only
LAB 5 - Application pinning
LAB 6 - Forward Error Correction (FEC)
LAB 7 - Packet Duplication

What is a Centralized Data Policy?

LAB 1 - Direct Internet Access (DIA) - Internet access to guest users

LAB 2 - VPN-wide Access Control Lists

LAB 3 - NAT DIA Tracker

LAB 4 - Allowing DIA to trusted application only

LAB 5 - Application pinning

LAB 6 - Forward Error Correction (FEC)

LAB 7 - Packet Duplication

Application-Aware Routing Policies
Application-Aware Routing (App-route) Policy
AAR alongside Data Policy
Configuring Application-Aware Routing (AAR) Policies

Application-Aware Routing (App-route) Policy

AAR alongside Data Policy

Configuring Application-Aware Routing (AAR) Policies

Localized Policies
What is a Localized Policy?
LAB 1 - Manipulating site-local BGP routing
LAB 2 - Implicit Access Control List (ACL)
LAB 3 - Explicit Access Control List (ACL)
LAB 4 - Traffic Policing
LAB 5 - Cisco SD-WAN QoS
LAB 6 - Mirror data traffic for analysis
QUIZ - Localized Policies

What is a Localized Policy?

LAB 1 - Manipulating site-local BGP routing

LAB 2 - Implicit Access Control List (ACL)

LAB 3 - Explicit Access Control List (ACL)

LAB 4 - Traffic Policing

LAB 5 - Cisco SD-WAN QoS

LAB 6 - Mirror data traffic for analysis

QUIZ - Localized Policies

High Availability, Scalability and Disaster Recovery
Cisco SD-WAN High Availability
Hierarchical SD-WAN
LAB 1 - Service side redundancy using VRRP
LAB 2 - OMP Redistribution and Loop Prevention

Cisco SD-WAN High Availability

Hierarchical SD-WAN

LAB 1 - Service side redundancy using VRRP

LAB 2 - OMP Redistribution and Loop Prevention

Cloud OnRamp
Cloud onRamp for SaaS
Cloud onRamp for IaaS
Cloud onRamp with AWS - Design Options

Cloud onRamp for SaaS

Cloud onRamp for IaaS

Cloud onRamp with AWS - Design Options

Cisco SD-WAN Security
What is SASE?
SD-WAN Security Overview
Application-aware Enterprise Firewall
Intrusion Prevention System (IPS)
HTTPS/TLS Proxy
LAB 1 - PCI Compliance (FW, IPS, TLS Proxy)
URL Filtering (URLF)
LAB 2 - Secure Guest Access (FW, URLF)
Advanced Malware Protection (AMP)
DNS Web Layer Security
QUIZ - Security Fundamentals

What is SASE?

SD-WAN Security Overview

Application-aware Enterprise Firewall

Intrusion Prevention System (IPS)

HTTPS/TLS Proxy

LAB 1 - PCI Compliance (FW, IPS, TLS Proxy)

URL Filtering (URLF)

LAB 2 - Secure Guest Access (FW, URLF)

Advanced Malware Protection (AMP)

DNS Web Layer Security

QUIZ - Security Fundamentals

Advanced Scenarios
Scenario #1 - Preferred DC in a dual-DC design
Scenario #2 - Last-resort-circuit for a single app
Scenario #3 - AAR in point-to-multipoint topologies
Scenario #4 - Advanced Route Leaking

Scenario #1 - Preferred DC in a dual-DC design

Scenario #2 - Last-resort-circuit for a single app

Scenario #3 - AAR in point-to-multipoint topologies

Scenario #4 - Advanced Route Leaking

Tags

SD-WAN

You prefer to study with a book?

"SD-WAN: Example-based Study Guide, Volume 1" is the first of a two-volume series that provides a comprehensive understanding of the Cisco SD-WAN solution. The book features over 250 diagrams and over 30 lab examples to help readers learn how to configure and deploy software-defined WAN. Written in a clear and accessible style, the book is ideal for both beginners and experienced networking professionals.

Comments

Rynqlo

Mon, 18 Oct 2021 - 00:00

When a match occurs, the configured action is performed and the sequential processing does NOT continue further (all other match-action pairings are skipped) ?

Log in or register to post comments

Ivan.Ivanov

Wed, 20 Oct 2021 - 00:00

Hi Rynqlo,

Thanks for spotting that out! Fixed!

Log in or register to post comments

waligora.m@seznam.cz

Thu, 31 Mar 2022 - 00:00

Hello,

I didn't find packet flow for traffic, when it go from Transport Side. Is order exactly same as from Service Side?

Thanks

Log in or register to post comments

capecodero@gmail.com

Sun, 26 Feb 2023 - 00:00

this is a great site thank you

Log in or register to post comments

Chengji

Tue, 12 Mar 2024 - 00:00

Hello,

Thanks a lot for amazing courses, NETCONF does not support JSON for data encoding, only use XML, if I'm not mistaken.

Log in or register to post comments

Mahamdou TOUNGARA

Wed, 24 Jul 2024 - 00:00

Bonjour M Ivan Ivanov. Merci pour les cours. Mais je suis un peu confus entre les politiques Cisco SDWAN et les stratégies Cisco SDWAN. Quelle est la différence entre les deux ? Elles sont appliquées au niveau de quel plan de l'architecture ?

Log in or register to post comments

Main navigation

Learning Paths

Courses

Legal

Our Cookie Policy

Our Privacy Policy

Our Terms of Service

Contribute

Become an Author

Donate

Suggest an improvement

Copyright © 2020-2026 NetworkAcademy.io

We use cookies on this site to enhance your user experience

By clicking the Accept button, you agree to us doing so.

More info

Accept No, thanks